package com.xqboss.apps.vo.team;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xqboss.apps.enums.consumer.ConsumerTeamMemberTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 队伍家庭成员
 *
 * @author lujiahong
 * @date 2023-12-21
 */
@Data
@ApiModel("队伍成员家庭基本信息")
public class WebConsumerTeamMemberFamilyVo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    private Integer id;

    @ApiModelProperty("父id（家庭）")
    private Long parentId;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("用户昵称")
    private String name;

    @ApiModelProperty("队伍角色（1_管理员（队长） 2_普通成员）")
    private Integer role;

    @ApiModelProperty("打卡次数（当日）")
    private Integer punchCount;

    @ApiModelProperty("打卡收益（当日）")
    private BigDecimal punchIncome;

    @ApiModelProperty("额外空投（当日）")
    private BigDecimal airdrops;

    @ApiModelProperty("加入时间")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy年MM月dd日 HH:mm:ss")
    private Date joinTime;

    @ApiModelProperty("加入时长(天)")
    private Integer joinDay;

    @ApiModelProperty("成员类型（1_主成员 2_爸爸 3_妈妈 4_配偶）")
    private ConsumerTeamMemberTypeEnum type;

    @ApiModelProperty("家庭成员（2_爸爸 3_妈妈 4_配偶）")
    private List<WebConsumerTeamMemberFamilyVo> children;

}



